package com.geektime.hello.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: DRevelation
 * @Date: 2021/5/6 13:29
 */
@RestController
@RequestMapping("demo")
public class DemoEventController {

    @Autowired
    private UserService userService;

    @GetMapping("register")
    public String register(String username) {
        userService.register(username);
        return "SUCCESS";
    }
}
